package com.jctrip.hotel.source.model.CnBooking.resp;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;

import lombok.Data;

/**
 * @Author henry
 * @Date 2023/8/1 14:58
 * @Description
 */
@Data
public class OrderCancelResp extends BaseResponse {
    @JacksonXmlElementWrapper
    @JacksonXmlProperty(localName = "Data")
    private CancelOrderResult data;

    @Data
    public static class CancelOrderResult {
        @JacksonXmlProperty(localName = "ReturnCode")
        private String returnCode;
        @JacksonXmlProperty(localName = "ReturnMessage")
        private String ReturnMessage;
        @JacksonXmlProperty(localName = "Order")
        @JacksonXmlElementWrapper
        private OrderData orderData;
    }

    @Data
    public static class OrderData {
        @JacksonXmlProperty(localName = "OrderId")
        private String orderId;
        @JacksonXmlProperty(localName = "OrderStatusId")
        private String orderStatusId;
        @JacksonXmlProperty(localName = "OrderStatus")
        private String orderStatus;
    }
}
